package com.xiangge.zuoye2;

import java.util.Arrays;

public class Demo9 {
    public static void main(String[] args) {
        int[] arr = {17, 29, 34, 42, 51};
        int[] brr = new int[arr.length];

        for (int i = 0; i < arr.length; i++) {
            brr[i] = arr[arr.length-1-i];
        }
        System.out.println(Arrays.toString(brr));
    }
}
